package com.boco.raptor.subsystem.attempx.optical.flex;

import javax.servlet.Filter;
import com.boco.common.util.debug.LogHome;
import javax.servlet.FilterConfig;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import java.io.IOException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


public class AMFSessionFilter implements Filter
{

public void init(FilterConfig config)
{
//LogHome.getLog().info("Init AMFSessionFilter filter");
}

public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws ServletException,IOException
{
AMFContext.setCurrentContext((HttpServletRequest)request, (HttpServletResponse)response);
chain.doFilter(request,response);
}

public void destroy()
{
    LogHome.getLog().info("Destory AMFSessionFilter filter");
}
}
